3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D RAVE provides functions that you can use to register a custom drawing engine and its drawing methods.
You can use the QARegisterEngine function to register a custom drawing engine with QuickDraw 3D RAVE.
TQAError QARegisterEngine (TQAEngineGetMethod engineGetMethod);
The QARegisterEngine function registers your custom drawing engine with QuickDraw 3D RAVE. You should call this function at startup time (usually from the initialization routine in the shared library containing the code for your drawing engine). QuickDraw 3D RAVE uses the method specified by the engineGetMethod parameter to retrieve function pointers for the non-drawing methods defined in your drawing engine.
You can use the QARegisterDrawMethod function to register a public draw context method with QuickDraw 3D RAVE.
TQAError QARegisterDrawMethod (
TQADrawContext *drawContext,
TQADrawMethodTag methodTag,
TQADrawMethod method);
The QARegisterDrawMethod function changes the method pointer of the draw context specified by the drawContext parameter that has the type specified by the methodTag parameter to the method specified by the method parameter. You should call QARegisterDrawMethod instead of directly changing the fields of a draw context structure.
Previous | QD3D Book | Overview | Chapter Contents | Next |